<?php

/* @var $this yii\web\View */

use yii\helpers\Url;

$this->title = '数据上传';
?>
<div class="container">
<form action="<?php echo Url::toRoute('site/uploadpost');?>" method="post" enctype="multipart/form-data" class="form-inline">
    <div class="form-group">
        <label for="exampleInputFile">文件上传</label>
        <input type="file" id="file" name="UploadForm[file]"/>
        <p class="help-block">仅支持xslx格式文件</p>
    </div>
    <button type="submit" class="btn btn-default">上传</button>
</form>
</div>

